package com.tools.commons.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author wangminggen
 */

@Data
@ConfigurationProperties(prefix = "oauth.config")
public class OauthProperties {
    private String callBack = "http://localhost:9898/auth/{type}/callback";

    public String callBack(String type) {
        return callBack.replace("{type}", type);
    }

    private String gitee_ClientId = "5f8c85d87c51208fa512a67af600b59515fb31d13c0bc56bb2652588b59c7839";
    private String gitee_ClientSecret = "1eef8c50734624ea7bfc3d95edd793727f7b8af2ff10c63a47bb0eb0af2d6b9d";

    private String github_ClientId = "2ce407063e175d3fc725";
    private String github_ClientSecret = "020f127661c175c35f24b111e2945409bc5a59ad";
}

